limit variable scope, found by LGTM.
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 24 Nov 2021 00:09:14 +0000 (16:09 -0800)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 24 Nov 2021 00:09:14 +0000 (16:09 -0800)
Poor global variable name 'ops'. Prefer longer, descriptive names for globals (eg. kMyGlobalConstant, not foo).

jeeps/gpsdevice.cc

index 2c9221e3f35313d54976b763210ef7e2bc3d3717..5cfd178c007919f74c2463f30501492932ea6bdc 100644 (file)
@@ -25,7 +25,7 @@
 
 extern gps_device_ops gps_serial_ops;
 extern gps_device_ops gps_usb_ops;
-gps_device_ops* ops = nullptr;
+static gps_device_ops* ops = nullptr;
 
 int32  GPS_Device_On(const char* port, gpsdevh** fd)
 {